package cool.goodbai.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("")
public class PageResult<T> {
    /**
     * 实体数据
     */
    @ApiModelProperty(value = "实体数据")
    private T data;
    /**
     * 页号
     */
    @ApiModelProperty(value = "页号")
    private Integer page;
    /**
     * 页号
     */
    @ApiModelProperty(value = "页大小")
    private Integer pageSize;
    /**
     * 是否成功
     */
    @ApiModelProperty(value = "是否成功")
    private Boolean success;
    /**
     * 总数
     */
    @ApiModelProperty(value = "总数")
    private Long total;

    /**
     * 错误显示类型
     */
    @ApiModelProperty(value = "错误显示类型")
    private Integer showType;
}
